package com.file.system.plugin.task;

import com.file.system.tools.console.Read;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Description [jch] [定时任务]
 * @Param
 * @Return
 * @Date 2020/5/13 11:05
 */
@Configuration
@EnableScheduling
public class StaticScheduleTask implements ApplicationRunner {



    /**
     * @Description [jch] [启动项目默认执行一次]
     * @Param
     * @Return
     * @Date 2020/4/14 11:20
     */
    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {

        Read.console("start");
    }


    /**
     * 每晚23点检查授权
     */
    /*@Scheduled(cron = "0 0 23 * * ?")
    private void configureTasks() {
        LicenseUtil.checkProject();
    }*/


}